package com.mediocre.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Property;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

//@ApiModel(value = "HALO文章实体", description = "HALO文章实体...")
@ApiModel(description = "HALO文章实体")
@Data
public class PostHalo implements Serializable {
    private static final long serialVersionUID = 1;

    @ApiModelProperty("ID")
    private Long id;

    @ApiModelProperty("创建时间：CURRENT_TIMESTAMP(6)（默认值）")
    private LocalDateTime createTime;

    @ApiModelProperty("是否被删除：0 （默认值）；1")
    private Byte deleted;

    @ApiModelProperty("更新时间：（默认值 CURRENT_TIMESTAMP(6)）")
    private LocalDateTime updateTime;

    @ApiModelProperty("发布来源：0 管理后台（默认值）；1 微信")
//    @Column(name = "create_from", columnDefinition = "int default 0")
    private Byte createFrom;

    @ApiModelProperty("禁止评论：0 允许评论（默认值）；1 禁止评论")
    private Byte disallowComment;

    @ApiModelProperty("编辑时间：（默认值 CURRENT_TIMESTAMP）")
    private LocalDateTime editTime;

    @ApiModelProperty("渲染过后的内容(html格式)，不能为空")
//    @Column(name = "format_content", columnDefinition = "text not null")
    private String formatContent;

    @ApiModelProperty("点赞数（默认值0）")
    //    @Column(name = "likes", columnDefinition = "bigint default 0")
    private Long likes;

    //    @Column(name = "original_content", columnDefinition = "text not null")
    @ApiModelProperty("原始内容(markdown格式)，不能为空")
    private String originalContent;

    @ApiModelProperty("文章密码")
//    @Column(name = "password", columnDefinition = "varchar(255) default ''")
    private String password;

    @ApiModelProperty("文章状态：0 已发布；1 草稿（默认）；2 回收站；3 私密")
//    @Column(name = "status", columnDefinition = "int default 1")
    private Byte status;

    @ApiModelProperty("文章摘要")
//    @Column(name = "summary", columnDefinition = "varchar(500) default ''")
    private String summary;

    @ApiModelProperty("自定义模板")
//    @Column(name = "template", columnDefinition = "varchar(255) default ''")
    private String template;

    @ApiModelProperty("文章封面的缩略图")
//    @Column(name = "thumbnail", columnDefinition = "varchar(1023) default ''")
    private String thumbnail;

    @ApiModelProperty("文章标题")
//    @Column(name = "title", columnDefinition = "varchar(100) not null")
    private String title;

    @ApiModelProperty("是否置顶")
//    @Column(name = "top_priority", columnDefinition = "int default 0")
    private Byte topPriority;

    @ApiModelProperty("文章URL")
//    @Column(name = "url", columnDefinition = "varchar(255) not null", unique = true)
    private String url;

    @ApiModelProperty("文章访问数")
//    @Column(name = "visits", columnDefinition = "bigint default 0")
    private Long visits;


}
